package com.myblockchain.service.model;

import java.io.Serializable;

/**
 * @author Liu
 */
public class Message implements Serializable {
    /**
     * 消息内容
     */
    private String data;
    /**
     * 消息类型
     */
    private int type;



    public Message(int type) {
        this.type = type;
    }

    public Message(int type, String data) {
        this.type = type;
        this.data = data;
    }

    public void setData(String data) {
        this.data = data;
    }
    public String getData() {
        return data;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

}
